package com.application.service;

import com.application.dao.UserDao;
import com.application.domain.User;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;

import javax.jws.soap.SOAPBinding;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface UserService{
    //添加操作
    int save(User user);

    //删除操作
    int deleteById(String openid);

    int deleteByIds(List<String> ids);

    int deleteAll();

    //修改操作
    int updateById(User user);

    //查询操作
    User selectById(String openid);

    List<User> selectByIds(List<String> ids);

    List<User> selectAll();

    String Login(User user);

    int register(User user);

    /**
     * 图片的地址下载 到数据库
     * @param user
     */
    int DownLoad(User user);


    String getId(User user);

    User getOne(LambdaQueryWrapper<User> lqw);

    List<User> getMemberByName(String name);

    int updateByLeader(String com_name,String position,String openid);

    int updateFlagByOpenid(String openid);

    String getSchool(String openid);



}
